package com.ai.bitcoin.jpa.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 用户实体表
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "bcc_user")
@DynamicInsert
@DynamicUpdate
public class BccUser extends Identity {

    //昵称
    String nickname;
    //头像
    String image;
    //用户微信公共号 openId
    @Column(unique = true)
    String openId;
    //创建时间
    Date createTime;
    //更新时间
    Date updateTime;
    //电子邮件
    String email;
    //手机号码
    String mobile;
    // 钱包im_token
    String purseImToken;
    //登陆成功的IP
    String lstSuccdeIp;
    //注册来源
    Integer source;
    String loginName;
    Integer status;
    String symbol;
    //积分
    Double bonus;
    String parentOpenId;
    String shareQrcodeUrl;
    Double plc;
    Integer inviteCount;
    //订阅推送配置
    private Integer monitorPushType;
    //关联
    private int relationTimes;
    @Transient
    String token;
    @Transient
    boolean firstLogin;
}
